package com.cgwx.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable;
import java.sql.Timestamp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Data
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("fs_shared")
@ApiModel(value="Shared对象", description="")
public class Shared implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    private String account;

    private String name;

    private String fileOrFolder;

    private String entityId;

    private String sharedId;

    private String sharedName;

    private String entityName;

    private String entityRoom;

    private String type;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp createTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp updateTime;

    private String fileId;

    private String fileUrl;

    private String versionId;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp deleteTime;

    private String isDeleted;

    private String tag;

    private String isFavorite;

    private float fileSize;

    private String isCanceled;

    private String isDeptReport;

    private String column;

    private String sort;

    @Override
    public String toString() {
        return "Shared{" +
                "id='" + id + '\'' +
                ", account='" + account + '\'' +
                ", name='" + name + '\'' +
                ", fileOrFolder='" + fileOrFolder + '\'' +
                ", entityId='" + entityId + '\'' +
                ", sharedId='" + sharedId + '\'' +
                ", sharedName='" + sharedName + '\'' +
                ", entityName='" + entityName + '\'' +
                ", entityRoom='" + entityRoom + '\'' +
                ", type='" + type + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", fileId='" + fileId + '\'' +
                ", fileUrl='" + fileUrl + '\'' +
                ", versionId='" + versionId + '\'' +
                ", deleteTime=" + deleteTime +
                ", isDeleted='" + isDeleted + '\'' +
                ", tag='" + tag + '\'' +
                ", isFavorite='" + isFavorite + '\'' +
                ", fileSize=" + fileSize +
                ", isCanceled='" + isCanceled + '\'' +
                ", isDeptReport='" + isDeptReport + '\'' +
                ", column='" + column + '\'' +
                ", sort='" + sort + '\'' +
                '}';
    }
}
